﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.Coupon.Model
{
    public class CouponDiscount
    {
        /// <summary>
        /// 门槛价
        /// </summary>
        [NumValidate("shop.coupon.threshold.price.error", 0.1)]
        public decimal ThresholdPrice { get; set; }

        /// <summary>
        /// 优惠值 
        ///</summary>
        [NumValidate("shop.coupon.threshold.price.error", 0.1)]
        public decimal? CouponVal { get; set; }

        /// <summary>
        /// 折扣
        /// </summary>
        [NumValidate("shop.coupon.threshold.price.error", 1, 100)]
        public short? Discount { get; set; }
    }
}
